import request from '@/utils/system/request'

// 获取数据api
export function getData() {
  return request({
    url: '/contract/info',
    method: 'post',
  })
}

// 获得进度
export function getWorkDate(data:Object) {
  return request({
    url: '/contract/workList',
    method: 'post',
    data
  })
}

// 创建新的草稿
export function addNew(userid:String) {
  return request({
    url: '/contract/addNew',
    method: 'post',
    params: {userid : userid}
  })
}
// 删无用
export function deleteNoName(userid:String) {
  return request({
    url: '/contract/deleteNoUse',
    method: 'post',
    params: {userid : userid}
  })
}